package com.initialize.pub.mybatis.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Jane
 * @since 2020-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("article")
@Builder
@ApiModel(value="Article对象", description="")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;

    @TableField("title")
    private String title;

    @TableField("content")
    private String content;

    @ApiModelProperty(value = "分类")
    @TableField("classification")
    private Integer classification;

    @ApiModelProperty(value = "标签")
    @TableField("label")
    private String label;

    @TableField("release_time")
    private LocalDateTime releaseTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "浏览量")
    @TableField("browse_the_number")
    private Integer browseTheNumber;

    @ApiModelProperty(value = "点赞数量")
    @TableField("thumb_up_number")
    private Integer thumbUpNumber;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;


}
